package com.paranoidmonkey.ode.Joint;

import com.paranoidmonkey.ode.AndrODE;
import com.paranoidmonkey.ode.World;

public class Ball extends Joint{
	public Ball(World world,JointGroup group){
		handle=AndrODE.dJointCreateBall (world.getHandle(), group.groupID);
	}
	public void setBallAnchor(float x, float y, float z){
		AndrODE.dJointSetBallAnchor (handle, x, y, z);
	}
	public void setBallAnchor2(float x, float y, float z){
		AndrODE.dJointSetBallAnchor2 (handle, x, y, z);
	}
	public void setBallParam(int parameter, float value){
		AndrODE.dJointSetBallParam (handle, parameter, value);
	}
	public void getBallAnchor(float[] result){
		AndrODE.dJointGetBallAnchor (handle, result);
	}
	public void getBallAnchor2(float[] result){
		AndrODE.dJointGetBallAnchor2 (handle, result);
	}
	public float getBallParam(int parameter){
		return AndrODE.dJointGetBallParam (handle, parameter);
	}

}
